package simpledb.parse;

/**
 * The SimpleDB parser.
 * @author Kenneth J. Loomis
 * @version 12/9/2011
 */
public class ParenPairs {
   private int left, right;
   
   public ParenPairs( ) {
      left = -1;
      right = -1;

   }
   
   public void SetLeft ( int l )
   {
	   left = l;
   }
   
   public void SetRight ( int r )
   {
	   right = r;
   }
   
   public Boolean Valid ()
   {
	   return ( left < right );
   }
   
   public int GetLeft ()
   {
	   return left;
   }
   
   public int GetRight ()
   {
	   return right;
   }
  
}
   


